﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseStudent
{
    public class BaseStudentResource : BaseStudentUpdateResource
    {
        public string StudentId { get; set; }


    }
    public class BaseStudentBasicInfoResource
    {
        public string StudentCode { get; set; }
        public string StudentName { get; set; }
        public string Sex { get; set; }
        public string ClassId { get; set; }
        public string HeadIcon { get; set; }
        public string CertificateNo { get; set; }
        public string HomeAddress { get; set; }
        public string Telephone { get; set; }
        public string Email { get; set; }
        public string Qq { get; set; }
        public string WeiXinCode { get; set; }
       
    }

    public class BaseStudentUpdateResource: BaseStudentBasicInfoResource
    {
        public string EnabledMark { get; set; }
    }      


    public class BaseStudentMappingProfile : Profile
    {
        public BaseStudentMappingProfile()
        {
            CreateMap<BaseStudentResource, Base_StudentInfo>();
            CreateMap<Base_StudentInfo, BaseStudentResource>();
            CreateMap<BaseStudentBasicInfoResource, Base_StudentInfo>();
            CreateMap<BaseStudentUpdateResource, Base_StudentInfo>();
        }
    }
}
